package com.creditnet.bmc.oa.dao;

import com.creditnet.bmc.oa.domain.NotifyRecordDO;

import java.util.List;
import java.util.Map;

/**
 * Created by bjmaozhengwei on 2018/4/14.
 */
public interface NotifyRecordDao {

    NotifyRecordDO get(Long id);

    List<NotifyRecordDO> list(Map<String, Object> map);

    int count(Map<String, Object> map);

    int save(NotifyRecordDO notifyRecord);

    int update(NotifyRecordDO notifyRecord);

    int remove(Long id);

    int batchRemove(Long[] ids);

    int batchSave(List<NotifyRecordDO> records);

    Long[] listNotifyIds(Map<String, Object> map);

    int removeByNotifbyId(Long notifyId);

    int batchRemoveByNotifbyId(Long[] notifyIds);

    int changeRead(NotifyRecordDO notifyRecord);
}
